import requestV2 from "@/utils/requestV2";


export function commit(data){
  return requestV2({
    url: "operationAid/FilterTemplate/commit",
    method: "post",
    data: data
  })
}

export function remove(id){
  return requestV2({
    url: `operationAid/FilterTemplate/delete?id=${id}`,
    method: 'post'
  })
}

export function list(menuType){
  return requestV2({
    url: "operationAid/FilterTemplate/list",
    params: {
      type: menuType,
    },
    method: "GET",
  })
}